<template>
    <div class="set">
        <div class="btn">
            <div @click="choseone" :class="index ? 'active' : ''">审核设置</div>
            <div @click="chosetwo" :class="!index ? 'active' : ''">删除设置</div>
        </div>
        <Scsz v-if="!index"></Scsz>
        <Shsz v-if="index"></Shsz>
    </div>
</template>

<script setup lang="ts">
import Scsz from '../../components/Scsz.vue'
import Shsz from '../../components/Shsz.vue'
import { ref } from 'vue'
var index = ref(1)
var list = [
    {
        id: 0,
        text: '审核设置'
    },
    {
        id: 1,
        text: '删除设置'
    }
]
var choseone = () => {

    index.value = 1

}
var chosetwo = () => {

    index.value = 0

}


</script>

<style scoped>
.set {
    width: 100%;
    height: 800px;
    background: #f7f7f7;
    /* padding: 20px 10px; */
}

.content {
    width: 100%;
    height: 100%;
    background: #fff;
    overflow: hidden;
}

.btn {
    display: flex;
}

.btn div {
    width: 100px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    font-size: 14px;
    cursor: pointer;
}

.top {
    width: 1000px;
    margin: 20px auto;
    /* background: red; */
    display: flex;
    justify-content: space-between;
}

.mid {
    width: 1000px;
    margin: auto;
    margin-top: 10px;
}

.active {
    background: #fff;
    color: #1790FF;

}
</style>